#!/bin/bash

# This file makes zombine useful.
# Unless you define some sensors, zombine will only send heartbeats.
# Watchdogs make checks locally and log something that's not right.

# OPTIONS
# -------
LOG_PRI_SENSORS='local7.info' # syslog facility.severity of sensors messages
LOG_PRI_WATCHDOGS='local7.warn' # syslog facility.severity of watchdogs messages

# SENSORS
# -------

# Uptime sensor. Reports amount of seconds the host is up.
# No arguments.
#Sensor uptime

# Load sensor. Reports loag averages.
# Argument is a maximum sensible load.
#Sensor load 5

# Swap sensor. Reports swap percentages.
# No arguments.
#Sensor swap

# CPUFreq sensor. Reports current core frequencies.
# Argument is minimum and maximum frequency separated with a comma.
# Different frequencies of different processors are not currently supported, sorry.
#Sensor cpufreq 180,1500

# Interfaces sensor. Reports current interface counters.
# Arguments are quoted strings like '<IFACE> <MAX>' where <IFACE> is an interface name
# and <MAX> is its maximum throughput in bits/sec. Suffixes 'k' and 'M' are supported.
#Sensor interfaces 'eth0 100M'

# ACPI temperature sensor. Guess what it reports.
# Arguments are quoted strings like '<DIR> <MIN>,<MAX>' where
#  <DIR> is a directory under /proc/acpi/thermal_zone/, <MIN> and <MAX> are mininum and maximum values for it.
# You can use this sensor if there is at least one valid dir that shows a correct temperature. So check it first.
#Sensor acpi-temp 'THRM 20,90'

# apcaccess(8) wrapper. Reports some values from apcaccess results. apcaccess is part of apcupsd package.
# Arguments are quoted strings like '<NAME> <MAX>', where <NAME> is a line header and <MAX> is a maximum value for that line.
#Sensor apcaccess 'LINEV 250' 'LOADPCT 100'

# WATCHDOGS
# ---------

# df(1) watchdog. Issues a warning if a partition goes low on free space.
# Arguments are quoted strings like '<MAX-IN-USE> <MOUNT>', where
#  <MAX-IN-USE> is a threshold percentage and <MOUNT> is that partition's mount point
#Watchdog df '90 /'           # warn if a root partition has less than 10% free space left
